import { Injectable } from '@angular/core';
import { _HttpClient } from '@delon/theme';

@Injectable({
  providedIn: 'root'
})
export class CargoStorageService {

	shipBillStorageUrl = 'tjpn4-handle-tally/shipBillStorage/';
	api = {
		storageByPositionPage: this.shipBillStorageUrl + 'storageByPositionPage',
		storageByPositionTotal: this.shipBillStorageUrl + 'storageByPositionTotal',
		storageByPositionDetailPage: this.shipBillStorageUrl + 'storageByPositionDetailPage',
		storageByPositionTallyPage: this.shipBillStorageUrl + 'storageByPositionTallyPage',

		storageByCargoPage: this.shipBillStorageUrl + 'storageByCargoPage',
		storageByCargoTotal: this.shipBillStorageUrl + 'storageByCargoTotal',
		storageByCargoDetailPage: this.shipBillStorageUrl + 'storageByCargoDetailPage',

		storageByShipPage: this.shipBillStorageUrl + 'storageByShipPage',
		storageByShipTotal: this.shipBillStorageUrl + 'storageByShipTotal',
		storageByShipDetailPage: this.shipBillStorageUrl + 'storageByShipDetailPage',
	};
	constructor(private http: _HttpClient) {
	}

	storageByPositionPage(params: any) : any {
		return this.http.get(this.api.storageByPositionPage, params);
	}

	storageByPositionTotal(params: any) : any {
		return this.http.get(this.api.storageByPositionTotal, params);
	}

	storageByPositionDetailPage(params: any) : any {
		return this.http.get(this.api.storageByPositionDetailPage, params);
	}

	storageByPositionTallyPage(params: any) : any {
		return this.http.get(this.api.storageByPositionTallyPage, params);
	}

	storageByCargoPage(params: any) : any {
		return this.http.get(this.api.storageByCargoPage, params);
	}

	storageByCargoTotal(params: any) : any {
		return this.http.get(this.api.storageByCargoTotal, params);
	}

	storageByCargoDetailPage(params: any) : any {
		return this.http.get(this.api.storageByCargoDetailPage, params);
	}

	storageByShipPage(params: any) : any {
		return this.http.get(this.api.storageByShipPage, params);
	}

	storageByShipTotal(params: any) : any {
		return this.http.get(this.api.storageByShipTotal, params);
	}

	storageByShipDetailPage(params: any) : any {
		return this.http.get(this.api.storageByShipDetailPage, params);
	}

}
